﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DTO
{
    public class HoaDonDTO
    {
        private int _MaHD;
        private DateTime _NgayHD;
        private string _SoHD;
        private int _MaKH;
        private string _TenKH;
        private string _DiaChi;
        private double _ThanhTien;
        private int _MaNV;
        private string _TenNV;
        private bool _LoaiKH;
        private string _GhiChu;
        public int MaHD
        {
            get { return _MaHD; }
            set { _MaHD = value; }
        }
        public DateTime NgayHD
        {
            get { return _NgayHD; }
            set { _NgayHD = value; }
        }
        public string SoHD
        {
            get { return _SoHD; }
            set { _SoHD = value; }
        }
        public int MaKH
        {
            get { return _MaKH; }
            set { _MaKH = value; }
        }
        public string TenKH
        {
            get { return _TenKH; }
            set { _TenKH = value; }
        }
        public string DiaChi
        {
            get { return _DiaChi; }
            set { _DiaChi = value; }
        }
        public double ThanhTien
        {
            get { return _ThanhTien; }
            set { _ThanhTien = value; }
        }
        public int MaNV
        {
            get { return _MaNV; }
            set { _MaNV = value; }
        }
        public string TenNV
        {
            get { return _TenNV; }
            set { _TenNV = value; }
        }
        public bool LoaiKH
        {
            get { return _LoaiKH; }
            set { _LoaiKH = value; }
        }
        public string GhiChu
        {
            get { return _GhiChu; }
            set { _GhiChu = value; }
        }
        private bool _TinhTrang;
        public bool TinhTrang
        {
            get { return _TinhTrang; }
            set { _TinhTrang = value; }
        }
        public HoaDonDTO()
        {
            this.NgayHD = DateTime.Now;
            this.SoHD = "0";
            this.MaKH = 2;
            this.TenKH = "Nhân viên";
            this.DiaChi = "Chưa Biết";
            this.ThanhTien = 0;
            this.MaNV = 1;
            this.LoaiKH = true;
            this.GhiChu = "Chưa biết";
            this.TinhTrang = false;
        }
        public HoaDonDTO(HoaDonDTO t)
        {
            this.MaHD = t.MaHD;
            this.NgayHD = t.NgayHD;
            this.SoHD = t.SoHD;
            this.MaKH = t.MaKH;
            this.TenKH = t.TenKH;
            this.DiaChi = t.DiaChi;
            this.ThanhTien = t.ThanhTien;
            this.MaNV = t.MaNV;
            this.LoaiKH = t.LoaiKH;
            this.GhiChu = t.GhiChu;
            this.TinhTrang = t.TinhTrang;
        }
       
    }
}
